package com.example.contactapp.objects;

import android.net.Uri;

public class ContactObject {
	private int id;
	private String avatar;
	private String name;
	private String address;
	private Uri contactUri;

	
	
	

	public Uri getContactUri() {
		return contactUri;
	}

	public void setContactUri(Uri contactUri) {
		this.contactUri = contactUri;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		if(name.length()==0){
			return address;
		}else{
			return name;
		}
	}
}
